﻿using SGV.Datos.Interfases;
using SGV.Datos.Repositories;
using SGV.Entidad;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SGV.Negocio
{
    public class Articulos
    {

        
        public static Articulo FindById(int id)
        {
           IArticuloRepository _articuloRepository = new ArticuloRepository();
           return _articuloRepository.FindById(id);
        }

        public static IList<Articulo> FindAll()
        {
            IArticuloRepository _articuloRepository = new ArticuloRepository();
            return _articuloRepository.FindAll();
        }

    }
}
